package com.wanxi.dao;

import com.wanxi.model.CustomerModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Li
 * @Date 2023/4/28 9:51
 */
public class CustomerDao {
    public List<CustomerModel> getCustomer() {
        List<CustomerModel> customerList = new ArrayList<CustomerModel>();
        String[] imgs = {"../img/k1.png","../img/k2.png","../img/k3.png","../img/k4.png","../img/k5.png"};
        for (int i = 0; i < imgs.length; i++) {
            customerList.add(CustomerModel.builder()
                    .img(imgs[i])
                    .build());
        }
        return customerList;
    }

    public List<CustomerModel> getCustomer1() {
        List<CustomerModel> customerList1 = new ArrayList<CustomerModel>();
        String[] imgs = {"../img/k6.png","../img/k7.png","../img/k8.png","../img/k9.png","../img/k10.png"};
        for (int i = 0; i < imgs.length; i++) {
            customerList1.add(CustomerModel.builder()
                    .img(imgs[i])
                    .build());
        }
        return customerList1;
    }
}
